// packageF/cps/component/goods.js
Component({
  /**
   * 组件的属性列表
   */
  lifetimes:{
    ready(){
      let language = wx.getStorageSync('langIndex');
      this.setData({
        'language': language.en,
      });
    },
  },
  properties: {
    list:{
      type:Array,
      value:[]
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    language:""
  },

  /**
   * 组件的方法列表
   */
  methods: {
    link_detail(e){
      let goods_id = e.currentTarget.dataset.id;
      wx.navigateTo({
        url: '/packageF/cps/detail/detail?goods_id='+goods_id,
      })
    }
  }
})
